package com.fcscs.cservice.ws.client.reservationservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.reservationservice.FindReservationsRequest;
import com.fcscs.cservice.ws.schema.reservationservice.FindReservationsResponse;

public class FindReservationsClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(FindReservationsClient.class);

	public FindReservationsResponse findResv(FindReservationsRequest req) {
		FindReservationsResponse resp = (FindReservationsResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getTotalCnt());
		return resp;
	}
}
